﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;


namespace TruckingApplication.Common
{
    public static class Utils
    {

        public static List<string> GetCountries()
        {
            return new List<string>();
        }

        public static void SendEmail(string to, string cc, string bcc, string subject, string content)
        {
            MailMessage mailMsg = new MailMessage();
            mailMsg.To.Add(to);

            MailAddress mailAdd = new MailAddress("your@email.com");
            mailMsg.From = mailAdd;

            mailMsg.Subject = subject;

            mailMsg.Body = content;

            SmtpClient client = new SmtpClient("mailserver", 587);
            System.Net.NetworkCredential credentials = new System.Net.NetworkCredential("username", "password");
            client.Credentials = credentials;
            client.Send(mailMsg);
        }
    }
}
